๐งฎ Op-Amp Applications: Mathematical Operations
We've learned the basics of op-amps. Now let's see how they can perform actual math operations on signals.
These circuits don't just amplify. They add, subtract, integrate, and differentiate.
And they do it continuously, in real-time, with analog voltages.
โ Summing Amplifier โ Adding Voltagesโ
The Problemโ
You have multiple input signals and need their weighted sum.
Examples:
- Audio mixing
- Multi-sensor averaging
- Control systems
The Circuitโ

The Mathโ
Using virtual ground at the inverting input:
Simple Case: Equal Resistorsโ
If and :
Perfect adder! (with inversion)
๐๏ธ Weighted Summing Exampleโ
Audio mixer with 3 channels:
- Voice: ,
- Music: , (quieter)
- Effects: , (background)
With :
Each channel has its own "volume control" via resistor selection!
The summing amplifier is the heart of analog audio mixers. Professional mixing consoles use hundreds of these circuits.
โ Difference Amplifier โ Subtracting Voltagesโ
The Problemโ
You need
Why?
- Sensor differential measurements
- Noise cancellation
- Bridge circuits
The Circuitโ

The Mathโ
For a unity-gain difference amplifier where :
Perfect subtraction!
General Case (with gain)โ
If and :
You get amplified difference.
๐ก๏ธ Temperature Differential Exampleโ
Two temperature sensors:
- Sensor A: (Room temp)
- Sensor B: (Near heat source)
Difference amplifier with gain = 10:
Now your ADC can easily measure the temperature difference with high resolution!
The difference amplifier is sensitive to resistor matching. Use 1% tolerance resistors or better for accurate subtraction.
๐ Integrator โ The Accumulatorโ
What It Doesโ
The output is the time integral (accumulation) of the input.
If input is constant โ output ramps linearly
If input is zero โ output holds value
If input reverses โ output ramps in opposite direction
The Circuitโ

The Mathโ
Simpler Understandingโ
The rate of change of output voltage:
- Positive input โ output ramps down
- Negative input โ output ramps up
- Larger input โ faster ramp
โก Integrator Example: Converting Current to Voltageโ
Current source: (constant)
Integrator with , :
Time constant:
After 5ms:
Perfect for measuring total charge!
๐ฏ Real Applications of Integratorsโ
| Application | Why Integration? |
|---|---|
| Charge amplifier | Convert sensor current to voltage |
| Waveform generation | Convert square wave โ triangle wave |
| Control systems | PI controllers need integration |
| Analog computers | Solving differential equations |
| Signal processing | Area under curve measurement |
Real integrators drift due to:
- Op-amp input bias current
- DC offsets
Solution: Add a large resistor (Mฮฉ range) in parallel with capacitor to provide DC feedback without affecting AC integration.
๐ Differentiator โ The Rate Detectorโ
What It Doesโ
Output is proportional to the rate of change of input.
Slow changes โ small output
Fast changes โ large output
Constant input โ zero output
The Circuitโ

The Mathโ
The output is the derivative (rate of change) of the input!
๐ Differentiator Example: Edge Detectionโ
Input: Square wave ( step in 1ฮผs)
Differentiator with , :
At the rising edge, you get a sharp spike!
This is how edge detectors work.
โ ๏ธ Problem with Practical Differentiatorsโ
Differentiators amplify noise.
Why?
High-frequency noise has rapid changes โ large derivatives โ huge noise at output.
Solutionโ
Add a small resistor in series with the capacitor to limit high-frequency gain.
(Add a small resistor (100ฮฉ - 1kฮฉ) in series with the input capacitor to limit high-frequency gain and prevent instability)
This creates a band-pass differentiator that works on your signal frequencies but ignores high-frequency noise.
๐ฏ Real Applications of Differentiatorsโ
| Application | Why Differentiation? |
|---|---|
| Velocity from position | Rate of change = speed |
| Edge detection | Find transitions in signals |
| High-pass filtering | Block DC, pass AC changes |
| Frequency doubling | In FM demodulation |
| Acceleration sensing | Rate of velocity change |
Differentiators are inherently unstable and noisy in pure form. Always add damping (series resistor) in practical circuits.
๐ Comparison Tableโ
| Circuit | Function | Input-Output Relationship | Key Component |
|---|---|---|---|
| Summing Amplifier | Addition | Multiple input resistors | |
| Difference Amplifier | Subtraction | Balanced resistor network | |
| Integrator | Accumulation | Feedback capacitor | |
| Differentiator | Rate of change | Input capacitor |
๐ฌ Design Guidelinesโ
For Summing Amplifiersโ
- Use resistors in 1% tolerance range
- Keep input impedances similar (unless weighting is desired)
- Consider input bias current effects with high-value resistors
For Difference Amplifiersโ
- Match resistor ratios precisely (this is critical!)
- Use resistor networks for better matching
- Consider instrumentation amplifier for better CMRR
For Integratorsโ
- Add parallel resistor for DC stability (typically 1-10 Mฮฉ)
- Add reset switch to discharge capacitor
- Use low-leakage capacitors (polypropylene or polystyrene)
For Differentiatorsโ
- Always add series input resistor for stability
- Limit bandwidth to avoid noise amplification
- Consider using RC high-pass filter instead for simple applications
๐งช Lab Exercise Ideasโ
-
Build a 3-input audio mixer
- Use potentiometers for volume control
- Mix three audio sources
- Observe how resistor values affect mixing
-
Temperature difference monitor
- Use two temperature sensors
- Build difference amplifier
- Measure temperature gradient across a heatsink
-
Triangle wave generator
- Square wave input to integrator
- Observe triangle wave output
- Change RC values to modify frequency
-
Edge detector
- Practical differentiator circuit
- Square wave input
- Observe output spikes at edges
โ Key Takeawaysโ
- Summing amplifiers add multiple signals with individual gain control
- Difference amplifiers subtract signals and reject common-mode noise
- Integrators accumulate signals over time (area under curve)
- Differentiators detect rate of change (slope)
- Each circuit has practical limitations that must be addressed
- These form the basis of analog computers and signal processing
๐ Looking Aheadโ
These mathematical operations are building blocks for:
- Active filters (our next topic!)
- Control systems (PID controllers)
- Analog signal processing
- Instrumentation amplifiers
- Waveform generators
Master these, and you're ready to design sophisticated analog systems! ๐
๐ Further Readingโ
- Experiment with different RC time constants
- Try cascading integrators and differentiators
- Research analog computers (they used these extensively!)
- Look into practical considerations for precision applications